.dock {
  --scale: 1;
  --translate-y: 0;

  z-index: 99990;
  display: flex;
  flex-direction: row;
  padding: 12px;
  margin-bottom: 12px;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(40px) saturate(180%);
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);

  .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
    position: relative;

    .iconfont {
      display: inline-block;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      padding: 2px;
      margin: var(--margin);
      font-size: 32px;
      text-align: center;
      cursor: pointer;
      border-radius: 20%;
      transform: scale(var(--scale)) translateY(var(--translate-y));
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    i {
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
  }

  .item:hover {
    .iconfont {
      margin: 0 6px;
      transform: scale(1.3) translateY(-8px);
      transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 1.5);
    }

    .title {
      position: absolute;
      top: -56px;
      z-index: 2;
      display: inherit;
      padding: 6px 12px;
      font-size: 12px;
      color: #282828;
      word-break: keep-all;
      background: rgba(255, 255, 255, 0.95);
      border-radius: var(--radius);
      animation: dock-title-animation 0.2s cubic-bezier(0.25, 0.46, 0.45, 1.5) 1 forwards;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      backdrop-filter: blur(8px);

      &::after {
        position: absolute;
        top: 100%;
        left: 50%;
        z-index: 1;
        width: 0;
        height: 0;
        content: '';
        border-color: rgba(255, 255, 255, 0.95) transparent transparent;
        border-style: solid;
        border-width: 6px 6px 0;
        transform: translateX(-50%);
      }
    }
  }

  @keyframes dock-title-animation {
    0% {
      opacity: 0;
      transform: translateY(8px) scale(0.95);
    }
    50% {
      opacity: 1;
      transform: translateY(-2px) scale(1.02);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .dot {
    position: absolute;
    bottom: -2px;
    display: inline-block;
    width: 5px;
    height: 5px;
    font-size: 0;
    background: var(--wos-theme-reverse-color);
    border-radius: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;

    .item:hover & {
      background: rgba(255, 255, 255, 1);
      transform: scale(1.2);
    }
  }

  .title {
    display: none;
  }

  .jump {
    animation: jump-animation 0.8s ease 1;
  }
}

.contextmenu {
  position: fixed;
  z-index: 100;
  width: 200px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--el-text-color-regular);
  text-align: left;
  text-shadow: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform-origin: bottom center;
  animation: menu-appear 0.2s ease-out;

  @keyframes menu-appear {
    0% {
      opacity: 0;
      transform: translateY(8px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  hr {
    border: none;
    border-top: 1px solid #ddd;
  }

  div.item {
    display: flex;
    align-items: center;
    padding: 0 12px;
    margin: 3px 5px;
    overflow: hidden;
    font-size: 13px !important;
    line-height: 2;
    color: var(--el-text-color-regular);
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    border-radius: var(--radius);

    &-list {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;

      &-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        margin-right: -8px;
        line-height: 18px;
        border-radius: 3px;

        &:hover {
          background: #f50;
        }

        &:active {
          background: #7e2d04;
        }
      }
    }
  }

  div.item:hover {
    color: white;
    background: #4b9efb;
    border-radius: var(--radius);
  }
}
